import { defineStore } from 'pinia'
store = defineStore('message', {
  state: () => ({
    chatList: [], // 聊天列表（会话）：[{ targetUserId, lastMsg, time, unreadCount, ... }]
    currentChat: { // 当前聊天详情（可选，用于聊天页）
      targetUserId: null,
      messages: []
    }
  }),
  actions: {
  }
})